package com.xdxc.store;

import com.xdxc.config.HmacConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class ClientStore  {
    @Autowired
    private HmacConfig hmacConfig;

    public String getSecret(String clientId) {
        return hmacConfig.getClientSecrets().get(clientId);
    }
}
